package com.example.a_base

import kotlin.streams.toList

/**
@author whd
@date 2023/10/13 11:00:47
 */
fun main() {
  val list= listOf<String>("aaa","bbb","ccc","zzaz")
  list.forEach { println(it) }
  val strings = list.stream().filter { it.length == 4 }.toList()
  strings.forEach{ println(it)}
  println("aaa" in list)
  var a = 100
  var b = 200
  a = b.also { b=a }
  println("a = ${a}")
  println("b = ${b}")
}
var i = 1
fun sum()= i++


